/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.eps.tesoreria.Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Luis_Angel
 */
@Entity
@Table(name = "tipo_comprobante_caja")
@NamedQueries({
    @NamedQuery(name = "TipoComprobanteCaja.findAll", query = "SELECT t FROM TipoComprobanteCaja t"),
    @NamedQuery(name = "TipoComprobanteCaja.findByIdComprobanteCaja", query = "SELECT t FROM TipoComprobanteCaja t WHERE t.idComprobanteCaja = :idComprobanteCaja"),
    @NamedQuery(name = "TipoComprobanteCaja.findByDescripcion", query = "SELECT t FROM TipoComprobanteCaja t WHERE t.descripcion = :descripcion"),
    @NamedQuery(name = "TipoComprobanteCaja.findByReferente", query = "SELECT t FROM TipoComprobanteCaja t WHERE t.referente = :referente")})
public class TipoComprobanteCaja implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id_comprobante_caja")
    private Integer idComprobanteCaja;
    @Column(name = "descripcion")
    private String descripcion;
    @Column(name = "referente")
    private String referente;

    @Column(name = "identificador_serie")
    private String identificadorSerie;
    @Column(name="flag_valida")
    private Boolean flagValida;

    public TipoComprobanteCaja() {
    }

    public TipoComprobanteCaja(Integer idComprobanteCaja) {
        this.idComprobanteCaja = idComprobanteCaja;
    }

    public Integer getIdComprobanteCaja() {
        return idComprobanteCaja;
    }

    public void setIdComprobanteCaja(Integer idComprobanteCaja) {
        this.idComprobanteCaja = idComprobanteCaja;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public String getReferente() {
        return referente;
    }

    public void setReferente(String referente) {
        this.referente = referente;
    }

    public String getIdentificadorSerie() {
        return identificadorSerie;
    }

    public void setIdentificadorSerie(String identificadorSerie) {
        this.identificadorSerie = identificadorSerie;
    }

    public Boolean getFlagValida() {
        return flagValida;
    }

    public void setFlagValida(Boolean flagValida) {
        this.flagValida = flagValida;
    }

    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idComprobanteCaja != null ? idComprobanteCaja.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TipoComprobanteCaja)) {
            return false;
        }
        TipoComprobanteCaja other = (TipoComprobanteCaja) object;
        if ((this.idComprobanteCaja == null && other.idComprobanteCaja != null) || (this.idComprobanteCaja != null && !this.idComprobanteCaja.equals(other.idComprobanteCaja))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tesoreria.ejb30.entity.TipoComprobanteCaja[idComprobanteCaja=" + idComprobanteCaja + "]";
    }

}
